import fetch from '@/api'

export function getOperationPointList(params) {
    return fetch({
        method: 'get',
        url: `/jobPoint`,
        params,
    })
}

// 查询详情
export function getOperationPoint(id) {
    return fetch({
        method: 'get',
        url: `/jobPoint/${id}`,
    })
}

// 新增
export function addOperationPoint(data) {
    return fetch({
        method: 'post',
        url: `/jobPoint`,
        data
    })
}

// 编辑
export function updateOperationPoint(id,data) {
    return fetch({
        method: 'put',
        url: `/jobPoint/${id}`,
        data
    })
}

// 删除
export function deleteOperationPoint(id) {
    return fetch({
        method:'delete',
        url:`/jobPoint/${id}`
    })
}
